<template>
	<view class="contact">
		<image src="../../static/lxwm.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话：000-123-4567 ( 点击拨打 )</view>
			<view>联系地址：浙江省杭州市杭州电子科技大学</view>
		</view>
		<map class="map" :longitude="longitude" :scale="scale" :latitude="latitude" :markers="markers"></map>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				longitude: 120.348937,
				latitude: 30.313784,
				scale: 13,
				markers:[
					{
						longitude: 120.348937,
						latitude: 30.313784,
						iconPath: '../../static/logo.png',
						width: 20,
						height: 20
					}
				]
			}
		},
		methods: {
			phone() {
				uni.makePhoneCall({
					phoneNumber: '000-123-4567'
				})
			}
		}
	}
</script>

<style lang="scss">
.contact{
	image{
		width: 750rpx;
		height: 360rpx;
	}
	.info{
		padding: 10rpx 20rpx;
		font-size: 30rpx;
		view{
			line-height: 80rpx;
			border-bottom: 1px solid #eee;
		}
	}
	.map{
			width: 750rpx;
			height: 750rpx;
	}
}
</style>
